package com.isunland.managesystem.ui;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import com.isunland.managesystem.R;
import com.isunland.managesystem.base.BasePagerActivity;
import com.isunland.managesystem.entity.CustomerProblem;

/**
 * 对象功能:
 * 开发公司: 北京信普达系统工程有限公司
 * 开发人员: HuXiaoDan
 * 创建时间: 2017/2/23 10:27
 */
public class CustomerProblemDetailActivity extends BasePagerActivity {

  private CustomerProblem mcontent;

  @Override protected void onCreate(Bundle arg0) {
    mcontent = (CustomerProblem) getIntent().getSerializableExtra(
        CustomerProblemListFragment.EXTRA_CONTENT);
    super.onCreate(arg0);
  }

  @Override protected Fragment createFragmentOne() {
    return CustomerProblemDetailFragment.newInstance(mcontent);
  }

  @Override protected Fragment createFragmentTwo() {
    return CustomerProblemDealListFragment.newInstance(mcontent);
  }

  @Override public Fragment createFragmentThree() {
    return FileReportListFragment.newInstance(mcontent.getId());
  }

  @Override protected int[] createTitle() {
    return new int[] {
        R.string.customer_problem, R.string.customer_problem_deal, R.string.fileReport
    };
  }
}
